package com.edu.study.base.StuQuestionBelongtoRelation.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 题库归属关系对象 stu_question_belongto_relation
 *
 * @author jjt
 * @date 2021-04-02
 */
public class StuQuestionBelongtoRelation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 业务id */
    @Excel(name = "业务id")
    private String bussId;

    /** 业务表名 */
    @Excel(name = "业务表名")
    private String bussTableName;

    /** 题库ID */
    @Excel(name = "题库ID")
    private String questionLibraryId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setBussId(String bussId)
    {
        this.bussId = bussId;
    }

    public String getBussId()
    {
        return bussId;
    }
    public void setBussTableName(String bussTableName)
    {
        this.bussTableName = bussTableName;
    }

    public String getBussTableName()
    {
        return bussTableName;
    }
    public void setQuestionLibraryId(String questionLibraryId)
    {
        this.questionLibraryId = questionLibraryId;
    }

    public String getQuestionLibraryId()
    {
        return questionLibraryId;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate)
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate()
    {
        return updateDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bussId", getBussId())
            .append("bussTableName", getBussTableName())
            .append("questionLibraryId", getQuestionLibraryId())
            .append("createDate", getCreateDate())
            .append("createBy", getCreateBy())
            .append("updateDate", getUpdateDate())
            .toString();
    }
}
